package cn.web.demo.service.impl;

import cn.web.demo.mapper.CourseCategroyMapper;
import cn.web.demo.model.CourseCategory;
import cn.web.demo.service.ICourseCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class CourseCategoryServiceImpl implements ICourseCategoryService {
    @Autowired
    CourseCategroyMapper categoryMapper;

    @Override
    public List<CourseCategory> findAllCourseCategory() {
        return categoryMapper.findAllList();
    }
}
